package cool.mor.dao;

import cool.mor.entity.Attendance;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ivan
 */
@Repository
public interface AttendanceRepository extends JpaRepository<Attendance,String> {
    /**
     * 根据id查询其下所有的考勤记录
     * @param employeeId
     * @return
     */
    List<Attendance> findAllByEmployeeId(String employeeId);
}
